<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/asserts/css/signIn.css}" rel="stylesheet">
    <title>用户注册</title>
</head>
<body class="text-center">
<form class="form-signIn" th:action="@{/user/signUpCheck}" method="post">
    <img class="mb-4" th:src="@{/asserts/img/forks.svg}" src="../../static/asserts/img/forks.svg" alt="" width="72" height="72">
    <!--判断-->
    <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
    <div class="form-group">
        <input type="text"  name="username" class="form-control" placeholder="用户名">
    </div>
    <input type="hidden" name="role" th:value="1">
    <div class="form-group">
        <input type="password" name="password" class="form-control" placeholder="密码">
    </div>
    <div class="form-group">
        <input type="text" name="email" class="form-control" placeholder="邮箱号">
    </div>
    <div class="form-group">
        <input type="text" name="phone" class="form-control" placeholder="手机号">
    </div>
    <div class="form-group">
        <select class="form-control-file" name="sex">
            <option>男</option>
            <option>女</option>
        </select>
    </div>
    <div class="form-group">
        <select class="form-control-file" name="question">
            <option>你的出生地在哪？</option>
            <option>你印象最深的动漫名字？</option>
            <option>你最熟悉的名字？</option>
            <option>你最喜欢的水果？</option>
        </select>
    </div>
    <div class="form-group">
        <input type="text" name="answer" class="form-control" placeholder="安全答案">
    </div>
    <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
    <p class="mt-5 mb-3 text-muted">© 201616080324</p>
    <a class="btn btn-sm" th:href="ordinary">返回登录</a>
</form>
</body>
</html>